package com.hdey.service.heng;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hdey.pojo.heng.TbUscUser;

public interface UserService extends IService<TbUscUser> {

    //查询全部的用户信息
    Page<TbUscUser> showAll(Integer current, Integer size, String userName, Integer roleId);
    //登录
    TbUscUser admin(String loginName);

    //添加一个用户
    int add(TbUscUser tbUscUser);

    //根据登录名查询用户
    TbUscUser showByloginName(String loginName);

    //删除
    int del(Integer userId);

    //根据id查询用户
    TbUscUser showByUserId(Integer userId);

    //修改
    int update(TbUscUser tbUscUser);

    //根据角色编号获取该角色的用户数量
    Integer selectCoutUser(Integer roleId);
}
